<?php

// This is required for successfull testing
(defined('IS_UNITTESTING')) || define('IS_UNITTESTING', true);

require_once 'PHPUnit/Framework/TestSuite.php';

require_once realpath(dirname(__FILE__) . '/odWpPlugin_Model_SimpleTest.php');
require_once realpath(dirname(__FILE__) . '/odWpPlugin_Model_WithTrashTest.php');
require_once realpath(dirname(__FILE__) . '/odWpPlugin_Model_WithVisibilityTest.php');
require_once realpath(dirname(__FILE__) . '/odWpPlugin_Model_WithTrashAndVisibilityTest.php');
require_once realpath(dirname(__FILE__) . '/odWpPlugin_FormTest.php');

// TODO require_once realpath(dirname(__FILE__) . '/odCatalogWpPlugin/odCatalogWpPluginTestsSuite.php');
// TODO require_once realpath(dirname(__FILE__) . '/odEshopWpPlugin/odEshopWpPluginTestsSuite.php');
// TODO require_once realpath(dirname(__FILE__) . '/odNewsletterWpPlugin/odNewsletterWpPluginTestsSuite.php');
// TODO require_once realpath(dirname(__FILE__) . '/odPhotogalleryWpPlugin/odPhotogalleryWpPluginTestsSuite.php');
// TODO require_once realpath(dirname(__FILE__) . '/odReservationsWpPlugin/odReservationsWpPluginTestsSuite.php');

class odWpPluginTestsSuite extends PHPUnit_Framework_TestSuite {

	public function __construct() {
		$this->setName('odWpPluginTestsSuite');
    
		// odWpPlugin tests
		$this->addTestSuite('odWpPlugin_Model_SimpleTest');
		$this->addTestSuite('odWpPlugin_Model_WithTrashTest');
		$this->addTestSuite('odWpPlugin_Model_WithVisibilityTest');
		//$this->addTestSuite('odWpPlugin_Model_WithTrashAndVisibilityTest');
		//$this->addTestSuite('odWpPlugin_FormTest');
		
		// Plugins test suites
		//$this->addTestSuite('odCatalogWpPluginTestsSuite');
		//$this->addTestSuite('odEshopWpPluginTestsSuite');
		//$this->addTestSuite('odNewsletterWpPluginTestsSuite');
		//$this->addTestSuite('odPhotogalleryWpPluginTestsSuite');
		//$this->addTestSuite('odReservationsWpPluginTestsSuite');
	}
	
	// Creates the suite.
	public static function suite() {
		return new self();
	}
}
